package com.tiger.userClient.http.banner;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.tiger.db.entity.Banner;
import com.tiger.userClient.Db;
import com.tiger.utils.ResponseUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/banner")
public class BannerController {
    private final BannerService bannerService;

    public BannerController(BannerService bannerService) {
        this.bannerService = bannerService;
    }


    @GetMapping("list")
    public Object list() {

        return ResponseUtil.successRes(bannerService.list());
    }
}
